<template>
	<view :class="{bg141414:theme}" style="min-height: 100vh;">
		
	<view class="con">
		<back title="我的钱包"></back>
		<view >
			<view @click="tapmomty" class=" posire">
				<view v-if="info.HF"  class="size26 posiab right50 top60 zindex5 bold ra15 wh166-65 flex-ju-c bgfff color000">进入钱包</view>
				<view v-else
					class="size26 posiab right50 top60 zindex5 bold ra15 wh166-65 flex-ju-c bg000 colorfff">立即开通</view>
				<image   mode="widthFix" class="image" :src="theme?'/static/img/thuifu.png':'/static/hf.png'"></image>
			</view>
			
			<view class="mt30 posire" @click="qidai" >
				<view v-if="info.SAND"  class="size26 posiab right50 top60 zindex5 bold ra15 wh166-65 flex-ju-c bg000 colorfff">进入钱包</view>
				<view v-else
					 class="size26 posiab right50 top60 zindex5 bold ra15 wh166-65 flex-ju-c bg000 colorfff">立即开通</view>
				<image   mode="widthFix" class="image" :src="theme?'/static/img/thuifu.png':'/static/sd.png'"></image>
			</view>
			<view class="mt30 posire" @click="qidai">
				<view v-if="info.YOP"  class="size26 posiab right50 top60 zindex5 bold ra15 wh166-65 flex-ju-c bg000 colorfff">进入钱包</view>
				<view v-else
					 class="size26 posiab right50 top60 zindex5 bold ra15 wh166-65 flex-ju-c bg000 colorfff">立即开通</view>
				<image   mode="widthFix" class="image" :src="theme?'/static/img/thuifu.png':'/static/yb.png'"></image>
			</view>
			
		</view>
	</view>
	</view>
	<!-- <uni-popup ref="tishi" type="center">
		<view class="bgfff pg30 ra20 center">
			<view class="size29 bold">该钱包还未开通</view>
			<view class="size26 mt10">是否前往开通？</view>
			<view class="flex-a-i pb20 mt50">
				<view @click="$refs.tishi.close()" class=" flex-ju-c border000 mr10 wh236-100 ra100">
					取消
				</view>
				<view @click="navto('suu')" class="ml10 flex-ju-c wh236-100 ra100 bg000 colorfff border000">
					确认
				</view>
			</view>
		</view>
		
	</uni-popup> -->
</template>

<script>
	export default {
		data() {
			return {
				theme: uni.getStorageSync('theme'),
				info: {}
			}
		},
		mounted() {

		},
		onLoad() {
			this.http('wallet/walletStatus').then(res => {
				this.info = res.data
			}).catch(res=>{
					console.log(res,"ppl")
					uni.showModal({
						content:res.data.message,
						success:(res)=> {
							if(res.confirm){
								this.navto('shiming/index')
							}
						}
					})
				})
		},
		methods: { 
			tapmomty() {
				var url = 'pages/user/money'
				// #ifdef APP-PLUS
				url = "back.html?money=1"
				// #endif
				this.http('wallet/createWallet',{
					url
				}).then(res => {
					this.topay(res.data)
				}).catch(res=>{
					if(res.data.code == 11000){
						uni.showModal({
							content:res.data.message,
							success:(res)=> {
								if(res.confirm){
									this.navto('shiming/index')
								}
							}
						})
					}
					
				})
			}
		}
	}
</script>

<style>

</style>